import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findProductSkuList(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/findProductSkuList',
        method: 'post',
        params
    })
}
export function operateSkuStatus(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/operateSkuStatus',
        method: 'post',
        params
    })
}
export function updateSkuPropertyValueNames(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/updateSkuPropertyValueNames',
        method: 'post',
        params
    })
}
export function findAllSkuListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/findAllSkuListByPage',
        method: 'post',
        params
    })
}
export function batchOperateSkuStatus(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/batchOperateSkuStatus',
        method: 'post',
        params
    })
}
export function delSku(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/delSku',
        method: 'post',
        params
    })
}
export function addSkuProperty(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/addSkuProperty',
        method: 'post',
        data: params
    })
}
export function delSkuProperty(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/delSkuProperty',
        method: 'post',
        params
    })
}
export function addSkuPropertyValue(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/addSkuPropertyValue',
        method: 'post',
        data: params
    })
}
export function delSkuPropertyValue(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/delSkuPropertyValue',
        method: 'post',
        params
    })
}
export function findProductSkuSelf(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/findProductSkuSelf',
        method: 'post',
        params
    })
}
export function saveProductSkuSelf(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/saveProductSkuSelf',
        method: 'post',
        data: params
    })
}
export function findPurchaseProductSkuListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productSku/findPurchaseProductSkuListByPage',
        method: 'post',
        params
    })
}
